package com.koalton.steward.common.util;

import java.util.Date;
import java.util.concurrent.atomic.AtomicLong;

public class SequenceUtil {

    /**
     * 序列初始值
     */
    private static AtomicLong seq = new AtomicLong(new Date().getTime());


    /**
     * 获取下一个序列
     * @return 序列值
     */
    public static long nextSeq() {
        return seq.getAndIncrement();
    }


}
